package com.technology.education.data.model

/**
 *@author:create by BZY
 *Date: 2022/3/17 16
 * 辅导订单列表
 */

data class TeacherOrderListModel(
    val list: List<TeachOrderModel>,
    val pageNo: Int,
    val pageSize: Int,
    val total: Int
)

data class TeacherOrderList(
    val id: String,
    val placeTime: String?,
    val question: String,
    val questionImage: String?,
    val teachOrderState: String,
    val teacher: TeacherInfoModel?
){
    val dateString get() = if (placeTime.isNullOrEmpty()) "暂未辅导" else "辅导时间:$placeTime"
    val teacherName get() = teacher?.name ?: "等待接单中"
}
